
package com.insigma.business.qrcode.soldier._consumer.impl;



import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseDeleteRequest;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.*;
import com.insigma.business.qrcode.soldier.request.BaseGetRequest;
import com.insigma.business.qrcode.soldier._consumer.CompanyConsumer;
import com.insigma.business.qrcode.soldier._provider.CompanyProvider;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service("companyConsumer")
public class CompanyConsumerImpl implements CompanyConsumer {

    @Resource
    private CompanyProvider companyProvider;

    
    @Override
    public BasePagingResponse<List<CompanyDTO>> searchCompany(final CompanySearchRequest searchRequest) {
        return companyProvider.searchCompany(searchRequest);
    }

    @Override
    public BaseResponse<List<CompanyPositNoFairIdGroupDTO>> getCompanyPositNoFairId(String fairId) {
        return companyProvider.getCompanyPositNoFairId();
    }


    @Override
    public BaseResponse<CompanyDTO> getCompany(final BaseGetRequest baseGetRequest) {
        return companyProvider.getCompany(baseGetRequest);
    }

    
    @Override
    public BaseResponse<String> insertCompany(final CompanyInsertRequest insertRequest) {
        return companyProvider.insertCompany(insertRequest);
    }

    
    @Override
    public BaseResponse<Integer> updateCompany(final CompanyUpdateRequest updateRequest) {
        return companyProvider.updateCompany(updateRequest);
    }

    
    @Override
    public BaseResponse<Integer> deleteCompany(final BaseDeleteRequest deleteRequest) {
        return companyProvider.deleteCompany(deleteRequest);
    }

    @Override
    public BaseResponse<CompanyDTO> getCompanyByUserId(String userId) {
        return companyProvider.getCompanyByUserId(userId);
    }

    
    @Override
    public BaseResponse<CompanyDTO> getCompanyByEmployeeId(final String employeeId) {
        return companyProvider.getCompanyByEmployeeId(employeeId);
    }

    @Override
    public BasePagingResponse<List<CompanyDTO>> searchCompanyOfQualification(CompanySearchRequest companySearchRequest) {
        return companyProvider.searchCompanyOfQualification(companySearchRequest);
    }

    
    @Override
    public BaseResponse<Map<String, String>> getCompanyId2NameMapByIdList(final List<String> idList) {
        return companyProvider.getCompanyId2NameMapByIdList(idList);
    }

    @Override
    public BaseResponse<Integer> updateCompanyExtraInfo(CompanyUpdateRequest updateRequest) {
        return companyProvider.updateCompanyExtraInfo(updateRequest);
    }

    @Override
    public BaseResponse<CompanyDTO> getCompanyWithJobPosition(BaseGetRequest baseGetRequest) {
        return companyProvider.getCompanyWithJobPosition(baseGetRequest);
    }

    @Override
    public BaseResponse<Integer> importCompany(SimpleApiRequest request) {
        return companyProvider.importCompany(request);
    }

    @Override
    public BaseResponse<CompanyTrainingStatsDTO> statsCompanyTraining(CompanySearchRequest request) {
        return companyProvider.statsCompanyTraining(request);
    }
}
